home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 December / CHIPNET Aralık 1997.iso / linux / redhat / misc / src / install / hd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-11  |  478 b   |  26 lines

  1. #ifndef H_HD
  2. #define H_HD
  3.  
  4. enum partitionTypes { PART_EXT2, PART_SWAP, PART_DOS, PART_HPFS,
  5.             PART_NFS, PART_OTHER, PART_IGNORE };
  6.  
  7. struct partition {
  8.     char device[10];
  9.     int size;                /* in 1k blocks */
  10.     enum partitionTypes type;
  11.     int begin;
  12.     int end;
  13.     char tagName[25];
  14.     char * bootLabel;
  15. } ;
  16.  
  17. struct partitionTable {
  18.     struct partition * parts;
  19.     int count;
  20. };
  21.  
  22. int findAllPartitions(struct partitionTable * table);
  23. int partitionDrives(void);
  24.  
  25. #endif
  26.